//
//  Medic.m
//  iDent
//
//  Created by Marius Corega on 8/13/09.
//  Copyright 2009 Marius Corega. All rights reserved.
//

#import "Medic.h"


@implementation Medic

@synthesize username;
@synthesize password;


-(id) initWithServerURL:(NSURL*) url
{
	NSMutableString* srvURL = [[NSMutableString alloc] initWithString: [url absoluteString] ];
	[srvURL appendString:@"login.php"];

	return [self initWithURL:[NSURL URLWithString:srvURL] tableName: @"medici"];
}

-(BOOL)load
{
	[_postDict setObject:username forKey:@"user"];
	[_postDict setObject:password forKey:@"password"];
	
	return [super load];
}


- (NSDictionary*)medic
{
	return [_elemente objectAtIndex:0];
}

@end
